package com.tourlaid.mamagerment.mapper

import com.tourlaid.mamagerment.entity.Attention
import org.apache.ibatis.annotations.Param

/**
 * Created by xiaoyongge on 2017/7/19.
 */

interface AttentionMapper {

    fun getById(id: Long): Attention?;

    fun insert(record: Attention);

    fun getByUserIdAndTarget(@Param("userId") userId: Long?, @Param("targetUserId") targetUserId: Long): Attention?

    fun cancelAttention(@Param("userId") userId: Long?, @Param("targetUserId") targetUserId: Long)

    fun queryByUserId(@Param("userId") userId: Long): List<Map<String, Any?>>


}